package com.example.capsule_kafka.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.capsule_kafka.bean.OneToOneMessageBean;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: zhuzhiming
 * @Date: 2022/5/3 23:35
 */
public interface OneToOneMessageMapper extends BaseMapper<OneToOneMessageBean> {
    @Select(value = "select * from one_to_one_message where room_name = #{roomName} ")
    List<OneToOneMessageBean> getMessagesList(String roomName);
}
